package com.ktgj.flight.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.flight.mapper.CabinMapper;
import com.ktgj.flight.domain.Cabin;
import com.ktgj.flight.service.ICabinService;

/**
 * 机票字典_舱位Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-11-05
 */
@Service
public class CabinServiceImpl implements ICabinService 
{
    @Autowired
    private CabinMapper cabinMapper;

    /**
     * 查询机票字典_舱位
     * 
     * @param cabinId 机票字典_舱位ID
     * @return 机票字典_舱位
     */
    @Override
    public Cabin selectCabinById(Long cabinId)
    {
        return cabinMapper.selectCabinById(cabinId);
    }

    /**
     * 查询机票字典_舱位列表
     * 
     * @param cabin 机票字典_舱位
     * @return 机票字典_舱位
     */
    @Override
    public List<Cabin> selectCabinList(Cabin cabin)
    {
        return cabinMapper.selectCabinList(cabin);
    }

    /**
     * 新增机票字典_舱位
     * 
     * @param cabin 机票字典_舱位
     * @return 结果
     */
    @Override
    public int insertCabin(Cabin cabin)
    {
        return cabinMapper.insertCabin(cabin);
    }

    /**
     * 修改机票字典_舱位
     * 
     * @param cabin 机票字典_舱位
     * @return 结果
     */
    @Override
    public int updateCabin(Cabin cabin)
    {
        return cabinMapper.updateCabin(cabin);
    }

    /**
     * 批量删除机票字典_舱位
     * 
     * @param cabinIds 需要删除的机票字典_舱位ID
     * @return 结果
     */
    @Override
    public int deleteCabinByIds(Long[] cabinIds)
    {
        return cabinMapper.deleteCabinByIds(cabinIds);
    }

    /**
     * 删除机票字典_舱位信息
     * 
     * @param cabinId 机票字典_舱位ID
     * @return 结果
     */
    @Override
    public int deleteCabinById(Long cabinId)
    {
        return cabinMapper.deleteCabinById(cabinId);
    }
}
